e728fbd451a40817646083af8ae2f680a459831b,src/java/org/orbeon/oxf/xforms/action/actions/XFormsInsertAction.java,XFormsInsertAction,doInsert,#XFormsContainingDocument#IndentedLogger#String#List#NodeInfo#List#number#boolean#boolean#,177

Before Change


            // the first attribute of the insert location node. If the cloned node is not an attribute, then the
            // target location is before the first child of the insert location node."

            modifiedInstance = containingDocument.getInstanceForNode(insertContextNodeInfo);
            insertLocationNodeInfo = insertContextNodeInfo;
            final Node insertLocationNode = XFormsUtils.getNodeFromNodeInfo(insertContextNodeInfo, CANNOT_INSERT_READONLY_MESSAGE);
            insertedNodes = doInsert(insertLocationNode, clonedNodes);

After Change


            // the first attribute of the insert location node. If the cloned node is not an attribute, then the
            // target location is before the first child of the insert location node."

            modifiedInstance = (containingDocument != null) ? containingDocument.getInstanceForNode(insertContextNodeInfo) : null;
            insertLocationNodeInfo = insertContextNodeInfo;
            final Node insertLocationNode = XFormsUtils.getNodeFromNodeInfo(insertContextNodeInfo, CANNOT_INSERT_READONLY_MESSAGE);
            insertedNodes = doInsert(insertLocationNode, clonedNodes);